package p1000;

import java.math.BigInteger;
import java.util.Scanner;

public class Main1002大数A加B {
    public static void main(String[] args) {
        Scanner input = new Scanner(System.in);
        int n = input.nextInt();
        for (int i = 0; i < n; i++) {
            String as = input.next();
            String bs = input.next();
            BigInteger a = new BigInteger(as);
            BigInteger b = new BigInteger(bs);
            System.out.println("Case " + (i + 1) + ":");
            System.out.println(as + " + " + bs + " = " + a.add(b).toString());
            if (i < n - 1) {
                System.out.println();
            }
        }
    }
} 